/*    */ package com.gserver.commons.core.async;
/*    */ 
/*    */ public class SyncOperation
/*    */ {
/*    */   private int stage;
/*    */   private final IIoOperation operation;
/*    */ 
/*    */   public SyncOperation(IIoOperation operation)
/*    */   {
/* 30 */     this.stage = 0;
/* 31 */     this.operation = operation;
/*    */   }
/*    */ 
/*    */   public void execute()
/*    */   {
/* 39 */     this.stage = this.operation.doStart();
/* 40 */     if (this.stage == 1)
/*    */     {
/* 42 */       this.stage = this.operation.doIo();
/*    */     }
/* 44 */     if (this.stage == 2)
/*    */     {
/* 46 */       this.stage = this.operation.doStop();
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\commons_core.jar
 * Qualified Name:     org.mmo.commons.core.async.SyncOperation
 * JD-Core Version:    0.6.2
 */